/**
 * @see https://umijs.org/zh-CN/plugins/plugin-access
 * */
export default function access(initialState: { currentUser?: API.UserVO } | undefined) {
  const {currentUser} = initialState ?? {};
  return {
    // canAdmin: currentUser && currentUser.access === 'admin',
    // cantUser: currentUser,
    canUser:true,
    canAdmin:true,
  };
}
